package com.bdmc.task.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdmc.common.core.mybatisplus.core.BaseMapperPlus;
import com.bdmc.task.domain.TaskPlanDetail;
import com.bdmc.task.domain.bo.TaskPlanDetailBo;
import com.bdmc.task.domain.vo.PersonWorkTimeVo;
import com.bdmc.task.domain.vo.TaskPlanDetailVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 每日排班详情Mapper接口
 *
 * @author bdmc
 * @date 2022-03-06
 */
public interface TaskPlanDetailMapper extends BaseMapperPlus<TaskPlanDetail> {

    Page<TaskPlanDetailVo> mySelectPage(@Param("page") Page<TaskPlanDetail> page, @Param("param") TaskPlanDetailBo bo);

    List<TaskPlanDetailVo> selectTaskPlanDetailByWorkPlanId(@Param("workPlanId") Long workPlanId);

    Map<String,Object> selectWorkPersonOnlineCount(@Param("deptId") Long deptId);

    List<PersonWorkTimeVo> selectPersonDailyWorkTime(@Param("effectDate") String effectDate);
}
